# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-poe-component-client-keepalive
pkgver=0.272
pkgrel=9
pkgdesc="Perl/CPAN Module POE::Component::Client::Keepalive"
arch=(any)
url="https://search.cpan.org/dist/POE-Component-Client-Keepalive"
license=("GPL" "PerlArtistic")
depends=("perl-poe-component-client-dns" "perl-poe"
	"perl-poe-component-resolver" "perl-net-ip-minimal")
source=("https://search.cpan.org/CPAN/authors/id/R/RC/RCAPUTO/POE-Component-Client-Keepalive-$pkgver.tar.gz")
md5sums=('a4e58f1521ed369a342ae5b843d99184')

build() {
  cd "$srcdir"/POE-Component-Client-Keepalive-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/POE-Component-Client-Keepalive-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
